package org.springblade.tms.global.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springblade.common.enums.Enumerator;
import org.springblade.tms.global.anno.SelectEnum;

/**
 * @projectName: BladeX
 * @package: org.springblade.tms.global.enums
 * @className: CargoType
 * @author: yr
 * @description: 货物类型枚举
 * @date: 2022/3/11 17:50
 */
@AllArgsConstructor
@Getter
@SelectEnum(value = "CargoType", desc = "货物类型")
public enum CargoTypeEnum implements Enumerator {
	GENERAL_MERCHANDISE("generalMerchandise", "普货"),
	DANGEROUS_GOODS("dangerousGoods", "危化品");
	private final String value;
	private final String description;

	@Override
	public String value() {
		return value;
	}

	@Override
	public String description() {
		return description;
	}
}
